<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title></title>
		<link rel="stylesheet" type="text/css" href="assets/mui/css/mui.min.css" />
		<link rel="stylesheet" type="text/css" href="css/base.css" />
		<link rel="stylesheet" type="text/css" href="css/cart.css"/>
		<link rel="stylesheet" type="text/css" href="assets/fontAwesome/css/font-awesome.min.css" />
		<script src="assets/mui/js/mui.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="assets/artTemplate/template-native.js"></script>
		<script src="assets/zepto/zepto.min.js"></script>
		<script src="js/public.js"></script>
		<script src="js/cart.js"></script>
	</head>
	<body>	
		<header class="mui-bar mui-bar-nav my-header">
			<a href="search.html" class="mui-icon mui-icon-back mui-pull-left"></a>
			<h1 class="mui-title">购物车</h1>
		</header>
		<nav class="mui-bar mui-bar-tab footer my-footer">
			<a class="mui-tab-item" href="index.html">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item" href="category.html">
				<span class="mui-icon mui-icon-bars"></span>
				<span class="mui-tab-label">分类</span>
			</a>
			<a class="mui-tab-item mui-active" href="cart.html">
				<span class="mui-icon fa fa-shopping-cart"></span>
				<span class="mui-tab-label">购物车</span>
			</a>
			<a class="mui-tab-item" href="user.html">
				<span class="mui-icon mui-icon-person"></span>
				<span class="mui-tab-label">会员中心</span>
			</a>
		</nav>
		<div class="mui-scroll-wrapper">
			<div class="mui-scroll">
				<ul class="mui-table-view " id="cartBox"></ul>
				<h4 class="total">订单总额：¥110</h4>
			</div>
		</div>
		
		<script id="cartTpl" type="text/text/template">
			<% for(var i=0;i<data.length;i++){ %>
				<li class="mui-table-view-cell mui-transitioning mui-media">
					<div class="mui-slider-right mui-disabled">
						<span class="mui-btn mui-btn-primary editBtn" data-id="<%=data[i].id %>">编辑</span>
						<span class="mui-btn mui-btn-red deleteBtn" data-id="<%=data[i].id %>">删除</span>
					</div>
					<div class="mui-slider-handle">
						<a href="javascript:;">
							<img class="mui-media-object mui-pull-left" src="<%=data[i].pic[0].picAddr%>">
							<div class="mui-media-body">
								<p>
									<%=data[i].proName%>
								</p>
								<div class="mui-row">
							       <div class="mui-col-sm-6">
							       		<input type="checkbox">
							           <span class="price-1">¥<%=data[i].price %></span>
							           <span class="price-2 gray">¥<%=data[i].oldPrice %></span>
							       </div>
							       <div class="mui-col-sm-4">
							           <span class="gray">鞋码：<%=data[i].size %></span>
							       </div>
							       <div class="mui-col-sm-2">
							           <span class="gray">x<%=data[i].num %>双</span>
							       </div>
							   </div>
							</div>
						</a>	
					</div>
				</li>
			<% } %>
		</script>
		<script id="detailTpl" type="text/template">
			<div class="detail-size">
				尺码：
					<% for(var i=0;i<data.customSize.length;i++){ %>
						<span class="<%=data.size==data.customSize[i]?'active':''%>"><%=data.customSize[i] %></span>
					<% } %>
			</div>
			<div class="detail-num">
				数量：<span class="reduce">-</span><input type="text" class="num" value="<%=data.num %>"><span class="plus">+</span>
			</div>
		</script>
	</body>
</html>
